import { axios } from '@/utils/request'
import globalReq from "@/api/globalReq";
const schoolCourseSelection_url = "/api/v1/test/schoolCourseSelection/";
const test_schoolCourseSelection = {
    // 添加
    saveOrUpdate(parameter,flag) {
		return globalReq.saveOrUpdate(parameter,flag,schoolCourseSelection_url);
    },
    // 获取列表
    list(parameter) {
		return globalReq.list(parameter,schoolCourseSelection_url+'list');
    },
    // 获取信息
    getById(id) {
		return globalReq.getById(id,schoolCourseSelection_url+'getById/'+id);
    },
    // 删除
    remove(id) {
		return globalReq.remove(id,schoolCourseSelection_url+'delete/'+id);
    },
	getKxsl(){
		return axios({
		    url: schoolCourseSelection_url+'getKcKxsl',
		    method: 'get'
		});
	},
	// 导出用户
	exportAll(parameter) {
	    return axios({
	        url: schoolCourseSelection_url+'exportAll',
	        responseType: "blob",
	        method: 'post',
	        data: parameter,
	    });
	},
}
export default test_schoolCourseSelection;